
<div>
	<?=$this->load->view("common/paging_view", $pPaging)?>
</div>
		
<br>
<table>
<?php
	$column = 5;
	$count = 0;	
	foreach($products as $product){
		if($count % $column == 0) echo '<tr>';
		?>
			<td align="center">
				<?=$this->load->view('_product_item_view.php', array("product" => $product), true);?>					
			</td>
		<?
		if($count%$column==($column-1)){
			 echo '</tr>';
		}
		$count++;
	}
	$missColumn = $column - $count % $column;
	if($missColumn>0){
		for($j = 0;$j < $missColumn; $j++) echo '<td/>';
		echo '</tr>';
	}
?>
</table>
		
